home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Book Chapters / 03 - Advanced Graphics / Example 1 / sprite.h < prev   
Text File  |  1995-02-20  |  721b  |  37 lines

  1. //
  2. //    File: sprite.h
  3. //
  4. //    This file is the header for sprite.c.
  5. //
  6. //    2/18/95 -- Created by Mick
  7. //
  8.  
  9. // shield
  10. #ifndef _sprite_h_
  11. #define _sprite_h_
  12.  
  13. // include files
  14.  
  15. // global defines
  16.  
  17. // global typedefs
  18.  
  19. typedef struct
  20. {
  21.     Rect fSpriteRect;                        // the rect that defines the bounds of the sprite
  22.     PicHandle fSpritePict;            // the sprite data itself
  23. } tSpriteInfo;
  24.  
  25. // extern functions
  26.  
  27. extern tSpriteInfo *loadSprite( signed short inSpriteResID );
  28. extern void disposeSprite( tSpriteInfo *inSpriteInfo );
  29. extern void startSpriteDraw( Rect *inClipRect );
  30. extern void endSpriteDraw( void );
  31. extern void drawSprite( tSpriteInfo *inSpriteInfo, Point inWhere );
  32.  
  33. // extern data
  34.  
  35. // end of shield
  36. #endif // #ifndef _sprite_h_
  37.